home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Otherware
/
Otherware_1_SB_Development.iso
/
mac
/
hypercar
/
science
/
tempconv.sit
/
Temperature Conversion
/
background_2807.txt
< prev
next >
Wrap
Text File
|
1992-11-05
|
4KB
|
199 lines
-- background: 2807 from stack: in
-- bmap block id: 3345
-- flags: 0000
-- background id: 0
-- name:
-- part 1 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=20 top=121 right=143 bottom=120
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: celsius
----- HyperTalk script -----
on mouseUp
get field "temp"
put it into field "c"
add 273 to it
put it into field"k"
get field "temp"
multiply it by 9
divide it by 5
add 32 to it
put it into field "f"
get field "f"
add 460 to it
put it into field "r"
go to card id 3058
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=137 top=122 right=144 bottom=237
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: kelvin
----- HyperTalk script -----
on mouseUp
get field "temp"
put it into field "k"
subtract 273 from it
put it into field "c"
get field "c"
multiply it by 9
divide it by 5
add 32 to it
put it into field "f"
add 460 to it
put it into field "r"
go to card id 3058
end mouseUp
-- part 3 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=258 top=121 right=143 bottom=358
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: fahrenheit
----- HyperTalk script -----
on mouseUp
get field "temp"
put it into field "f"
subtract 32 from it
multiply it by 5
divide it by 9
put it into field "c"
get field "f"
add 460 to it
put it into field "r"
get field "c"
add 273 to it
put it into field "k"
go to card id 3058
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=377 top=120 right=142 bottom=477
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rankine
----- HyperTalk script -----
on mouseUp
get field "temp"
put it into field "r"
subtract 460 from it
put it into field "f"
get field "f"
subtract 32 from it
multiply it by 5
divide it by 9
put it into field"c"
get field "c"
add 273 to it
put it into field "k"
go to card id 3058
end mouseUp
-- part 5 (field)
-- low flags: 02
-- high flags: 0002
-- rect: left=189 top=44 right=60 bottom=292
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: temp
-- part 6 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=17 top=156 right=171 bottom=122
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: c
-- part 7 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=136 top=156 right=170 bottom=237
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: k
-- part 8 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=256 top=155 right=169 bottom=357
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: f
-- part 9 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=376 top=155 right=170 bottom=476
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: r